package com.example.vote.springboot_vote;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 测试跳转路径
 */
@Controller
@RequestMapping(value = "/pages")
public class HelloController {
    @GetMapping("/")
    public String index(ModelMap map) {
        map.addAttribute("host", "http://blog.didispace.com");
        return "index";
    }
    @GetMapping("/echarts")
    public String echarts(ModelMap map) {
        return "echarts";
    }
}
